Create a function count_occurrences in a file located at /app/solution.py that takes a list of strings as an argument and returns a dictionary. The dictionary should contain the unique strings from the list as keys and their respective counts as values.
Specific requirements:
The function should handle an empty list and return an empty dictionary.
The function should be case-sensitive, meaning 'Apple' and 'apple' should be counted as different strings.
The function should not use any built-in counting functions (like count() from list or collections.Counter).
Ensure that the function is efficient and can handle large lists.