如何进行 google sheet 过滤?

How to do google sheet filtering?

https://docs.google.com/spreadsheets/d/e/2PACX-1vQ9j9EuHnvBPi_IYhheTbttwG-D5JHYcSGodSl3eSydEG1z5R7PFfKAOw6G-XrNEZQnxvDg_-5PmgDp/pubhtml

我有一个像上面的googlesheetlink看起来像这样

Timestamp           Name

6/29/2020 23:32:42  aaaa

6/29/2020 23:32:50  aaaa

6/29/2020 23:32:54  aaaa

6/29/2020 23:33:00  bbbbb

6/29/2020 23:33:05  bbbbb

6/29/2020 23:33:10  bbbbb

6/29/2020 23:33:10  bbbbb

但我需要get/create这样的输出

Name     NumberOfItem

aaaa         3

bbbbb        4

如何在 google sheet

上执行此操作

尝试:

=QUERY(B2:B; "select B,count(B) where B is not null group by B label count(B)''")