Limit specific user to post max. XYZ number of ads

Hello all! I hope you are doing well.

Does anybody know a solution how to limit specific user on how much active ads can he have?

Like if I decide that user John can have Maximum 10 ads, but still want to allow others to post unlimited number of ads.

Thanks in advance! Luka