from functools import reduce


def CountElements(matrix, default_value):
    """count elements that are of default value and those that aren't."""

    ndefault = 0
    for x in matrix:
        for y in x:
            if default_value == y:
                ndefault += 1

    nfound = reduce(lambda x, y: x + y, [len(x) for x in matrix]) - ndefault
    return ndefault, nfound