@staticmethod
def c_2():
    (r, c, k) = map(int, sys.stdin.readline().split())
    s = np.array([list(s) for s in sys.stdin.read().split()])
    s = np.pad(s, 1, constant_values='x')
    a = (s == 'o').astype(np.int16)
    a = distance_transform_cdt(a, metric='taxicab')
    print(np.count_nonzero((a >= k)))
@staticmethod
def c_2():
    (r, c, k) = map(int, sys.stdin.readline().split())
    s = np.array([list(s) for s in sys.stdin.read().split()])
    s = np.pad(s, 1, constant_values='x')
    a = (s == 'o').astype(np.int16)
    a = distance_transform_cdt(a, metric='taxicab')
    print(np.count_nonzero((a >= k)))