Restricting number of pages published in membership

I wish to restrict the number of pages that can be created and published by a member at each membership level created using membership plugin (Different number of pages at different levels).
How do I do it?
I wish to charge the member for creating each additional page beyond the set number as provisioned through point 1. above.

Please help.