The Optimal Number of Firms in the Commons: A Dynamic Approach