Limit number of posts users can create

Hello,

Is there a way that I can limit the number of custom posts that a user can create? For example, one user might be able to only create one post whereas another user could create 5 listings.

Thank you,
Greg