select count distinct multiple columns postgresql