Problem

Count lines (split by \n) that contain ch.

Examples

  • countCharLines("cat dog car", "a") -> 2
Compile and test (Ctrl+Enter)