You will need some aggregating in your query.
Basic syntax is as follows
Select
Count(Fieldname1) as CountOfFieldname1,
Fieldname1
From table
Group By Fieldname1
If you need something more, you can read about Common Table Expressions and SQL Windowed Funtions