Specifying criteria for count operation