#### Registered Users Only

Please login to view and utilize this feature.

## Problem Description

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.

## Input

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.

## Output

Your output should contain one integer, the total number of potatoes found in Jiahai's potato farm.

Your output should terminate with a newline.

## Limits

1 <= *H* <= 500

1 <= *W* <= 500

## Sample Input 1

3 3 .## #.# ###

## Sample Output 1

7

## Sample Input 2

4 4 ..#. #... .... .#.#

## Sample Output 2

4

### Tags

### Subtasks and Limits

Subtask | Score | #TC | Time | Memory | Scoring |
---|---|---|---|---|---|

1 | 100 | 10 | 1s | 64MB | Minimum |

2 | 0 | 2 | 1s | 64MB | Minimum |

### Judge Compile Command

g++ ans.cpp -o farming -Wall -static -O2 -lm -m64 -s -w -std=gnu++14 -fmax-errors=512