获取 psql 中给定列的所有可能值的计数

Obtain count of all possible values of a given column in psql

我有一个带有 c1 列的 table t1,它的类型为 character(2),其值介于 00:97 之间。我能够计算 c1 包含单个特定值(比如 62)的案例数 (7632):

SELECT count(*) FROM t1 WHERE c1='62';
 count 
-------
  7632
(1 row)

但是,我有兴趣获取 c1 可以获得的每个可能值 (00:97) 的计数。 psql 中有这样的语法吗?

select c1, count(*) from t1 group by c1 order by c1;