Get rows count by column values

a block that gets the amount of rows in a database with specific column values