def pitch_size(pitch):
    """Compute the size of a pitch.
    Arguments:
        pitch {[triple]} -- a triple (pitchname,accidental,tie)
    """
    size = 0
    # add for the pitchname
    size += 1
    # add for the accidental
    if not pitch[1] == "None":
        size += 1
    # add for the tie
    if pitch[2]:
        size += 1
    return size