Write a program that determines how many times an element equal to K occurs in a matrix.

Input
The first line contains the dimensions of the matrix separated by a space: the number of rows Nand the number of columns M (\(1 <= N , M <= 100\)). The following Nlines contain matrix rows, each – by Mnatural numbers separated by spaces. The last line contains an integer K.

Imprint
The program should output the number of matrix elements equal to K.