Jiahai loves to eat potatoes. In fact, as you would probably have seen in the previous question, he even has a potato farm dedicated to planting potatoes! It is harvesting day for the Jiahai Potato Farm (JPF) again, and it is time to start picking the potatoes! However, surprisingly, Jiahai does not know how to count the potatoes on his farm! Stumped, he asked you for help in helping him count the number of potatoes he has in his farm.
You will be given a grid of height H and width W. A '#' on the grid will represent a plot with a potato, and a '.' on the grid will represent a plot with no potato. Help Jiahai count the number of potatoes in this grid, which is his farm.
The first line of input will contain two integers, H and W.
The next H lines of input will contain W characters each, providing the grid for Jiahai's potato farm.
Your output should contain one integer, the total number of potatoes found in Jiahai's potato farm.
Your output should terminate with a newline.
1 <= H <= 500
1 <= W <= 500
Sample Input 1
Sample Output 1
Sample Input 2
Sample Output 2