
    Given hourly passenger counts from three parallel bus routes serving the same area, determine the number of hours when all three routes experienced identical passenger loads to help identify synchronized peak demand periods. The routes' passenger counts are represented as three separate lists, where each position corresponds to the same hour of operation.
    

    
def count_samepair(list1, list2, list3):
    """
    Given hourly passenger counts from three parallel bus routes serving the same area, determine the number of hours when all three routes experienced identical passenger loads to help identify synchronized peak demand periods. The routes' passenger counts are represented as three separate lists, where each position corresponds to the same hour of operation.
    

    """
def count_samepair(list1, list2, list3):
    """
    Given hourly passenger counts from three parallel bus routes serving the same area, determine the number of hours when all three routes experienced identical passenger loads to help identify synchronized peak demand periods. The routes' passenger counts are represented as three separate lists, where each position corresponds to the same hour of operation.
    

    """
    result = sum((m == n == o for (m, n, o) in zip(list1, list2, list3)))
    return result