Use connector's buildWhere to implement count
Normalize/validate the query filter object