You can take a look onat the https://www.drupal.org/project/node_limitNode Limit module. Some more details about it (from its project page):
The Node Limit module allows administrators to restrict the number of nodes of a specific type that roles or users may create. For example, if a site has an "Advertiser" role that can create "advertisement" nodes, then the node limit administrator can restrict all users in that role to a specific number of nodes. He may also restrict users on a per-user basis.
Works well, but I don't have testettested it with anonymous users.