Limit number of times a user signs up for a service

Can we limit the number of times a user can sign up for a service?

Let's say we only want a user to be able to sign up for service A twice in a 7 day period. Yet they can sign up for Service B twice in the same 7 day period.

Is it possible?