Tag count querry moved to model