Postgres columns order changes use count instead