```python
def count_samepair(list1, list2, list3):
    """
    Counts the number of times elements at the same index in three lists are all equal.

    Args:
        list1: The first list.
        list2: The second list.
        list3: The third list.

    Returns:
        The count of indices where the elements in all three lists are identical.
    """
    same_pair_count = 0
    # zip iterates through the lists in parallel until the shortest one is exhausted.
    for item1, item2, item3 in zip(list1, list2, list3):
        # Check if the elements at the current position are all equal.
        if item1 == item2 == item3:
            same_pair_count += 1
    return same_pair_count

```