Limit number of nodes created per label


I'm trying to limit the number of nodes create per label. So if I have an author, I want the author to be able to create only five blog posts. How do I achieve this in GraphQL apart from maybe writing a custom resolver?