sql select count distinct all columns