Get rows count by column values