$ cat foo.txt
aaa
bbb

ccc
ddd
...

#count1
aaa
bbb

#count2
ccc
ddd

空行を数えてこんな追加ってできる?
実際の文字数や行数はバラバラ