added count query to getList if entityCount is true