Task: Program Execution
Input (English): X, 9947, 353, O, 787, n, V
Output (English): 3