added distinct to GenericCountModel
added distinct to GenericCountModel