If the implementation of a Specification sets the distinct flag, we now create a count query that is honoring the distinct flag as well.
If the implementation of a Specification sets the distinct flag, we now create a count query that is honoring the distinct flag as well.