Added where conditions (gte,in,...)  to count()