Postgresql Select Count Distinct Mysql Commands Line