Problem

Return count of target in list.

Examples

  • listCountVal([1, 2, 1], 1) -> 2
Compile and test (Ctrl+Enter)