Writing Sql Command Count Distinct Values In A Column