On the Optimal Number of Firms in the Commons: Cournot vs Bertrand