def count_dots(paper):
    """
    Count dots on the paper
    :param paper: paper with dots
    :return: number of dots
    """
    counter = 0
    for row in paper:
        for dot in row:
            if dot:
                counter += 1
    return counter