Restricting number of pages published in membership

1.
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?
2.
I wish to charge the member for creating each additional page beyond the set number as provisioned through point 1. above.

Please help.