T Sql Count Distinct Over Partition By