Task: Program Execution
Input (English): a, 2223, 6847, 4617, a, G
Output (English): 3