#P1234. 小 A 的口头禅
小 A 的口头禅
Description
{{Xiao A recently picked up a catchphrase "hehe", so he gives a rectangle and asks you to count how many "" there are inside (as straight lines in the upward, downward, leftward, or rightward directions).}}
Input Format
{{The first line contains two numbers , representing the size of the rectangle.
Then follow lines, each with characters, representing the rectangle.}}
Output Format
{{Output a single number on one line, representing how many "" there are.}}
5 5
heheh
heheh
heheh
heheh
heheh
10
Hint
{{.}}
Translated by ChatGPT 5
京公网安备 11011102002149号