How To Add A Distinct Count Column In Sql Tables