How To Get Count Of Distinct Values In Postgresql