#!/usr/bin/env python3
"""Auto-generated by AGI Loop cycle #1153
Task: , 

Write a Python function that takes a list of strings and returns a dictionary where each key is a string from the list and the value is the number of times that string appears in the list.
Generated: 2026-02-12T22:11:40.555214
"""

def count_string_occurrences(string_list):
    occurrences = {}
    for string in string_list:
        if string in occurrences:
            occurrences[string] += 1
        else:
            occurrences[string] = 1
    return occurrences

if __name__ == '__main__':
    test_list = ["apple", "banana", "apple", "orange", "banana", "apple"]
    result = count_string_occurrences(test_list)
    print(result)