A monochrome graphic file has a resolution of n \times m pixels. Each pixel is either white or black. A connected component of black pixels is the largest group of black pixels where each pixel can be reached from any other by moving right, left, up, or down through black pixels. For example, in the first test case, there are four connected components of black pixels. A component is called a corner if it consists of two perpendicular segments that intersect at their endpoints. In the first test case, there are two corners. Determine the number of corners in the given image.
The input file contains one or more images. The first line of each image description contains two natural numbers and (1 \le n \le 50; 1 \le m \le 50). Next follow lines, each consisting of characters. The character "." represents a white pixel, and the character "*" represents a black pixel. The total number of images in the file does not exceed .
For each image, output the number of corners in a separate line.
Example 1