Counting Unique Identifiers In Sql