如何扫描列并根据特定项目的出现显示结果?

How can I scan a column and show results based on occurrences of a certain item?

如何在 Google Sheet 秒内扫描列并显示出现次数?

示例:

然后在同一个 Google Sheet 的另一个选项卡上,我列出了它。

- rt.com - 1
- exe.com - 3
- and so on.

我试过根据网上找到的脚本编写公式,但一直没有成功。

=QUERY(A2:A, "select A,count(A) where A is not null group by A label count(A)''", 0)