Add the Count constraint