def total_beats(beat_times):
    """
    Finds the total number of beats in the ECG trace

    :param beat_times: (list) array of beat times
    :return: integer number of beats in beat_times
    """
    num_beats = len(beat_times)
    return num_beats