Linux ファイル内の特定文字数をカウント

ファイル内の特定文字数をカウント

cat AAA.txt | grep -c XXX

AAA.txt   : 調べたいファイル
XXX       : 特定文字