Count function in constraint

In reply to dave_59:

Thank You for the comment Dave