def zero_check(grid):
    """Take a 2d grid and calculates number of 0 entries."""
    zeros = 0
    for row in grid:
        for element in row:
            if element == 0:
                zeros += 1
    return zeros