How to set up a pay-per-search / pay-per-query site with memberships? [closed]

I want to set up a website where customers can pay for searching a database. The idea would be that there are different types of memberships with different numbers of allowed searches in the database. Is there any plugin or anyone who did something similar before?