Task: Program Execution
Input (English): 317, Z, 9781, Q, I, O
Output (English): 2