add select count by query sharding and clazz interface