select distinct count in sql server