I have an Entity class and I want to count the number of elements that satisfy some conditions in a PostgreSQL database.
The entity contains many columns but I just n