Problem

Count occurrences of target.

Examples

  • countTarget([2, 2, 3], 2) -> 2
Compile and test (Ctrl+Enter)