generate a small integer here to compare with COUNT(*) in the place of comparableconstant which could be a string value.