import logging


def num_beats(data):
    """ Counts number of heart beats found
    :param data: list of indices where heart-beat events were detected
    :return: Number of heart beats
    """
    logging.info("Counting Number of Beats...\n")
    return len(data)