[Request] Limit Wordpress members to login upto 10 times then upgrade

Hi,

I am looking for a plugin for Wordpress where I can restrict members to login ‘n’ number of times for free and then prompt them to upgrade the plan.

Can someone help me with this request?

Thanks.