title: Program Count Occurrence Given Character String
signature: programCountOccurrenceGivenCharacterString :: String -> Char -> Integer
  programCountOccurrenceGivenCharacterString s c = 
test_code: import Text.Printf
  import Control.Exception (catch, SomeException)
  import Data.Typeable
  import qualified Data.List as List
  import qualified Data.Map as Map
  import qualified Data.Set as Set
  
  -- SOLUTION CODE
  -- ============================================
  
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  validateSolution :: Integer -> Integer -> Bool
  validateSolution actual expected = do
      actual == expected
  
  
  driver :: String -> Char -> Integer -> String
  driver s c expected = do
      if (validateSolution (PLACEHOLDER_FN_NAME s c) expected)
          then "PASSED"
      else "FAILED"
  
  main = do
      printf "TEST-0...%s\n" (driver ("mhjnKfd") ('l') (0) )
  
      printf "TEST-1...%s\n" (driver ("716662107") ('6') (3) )
  
      printf "TEST-2...%s\n" (driver ("01") ('1') (1) )
  
      printf "TEST-3...%s\n" (driver ("wPHSxIbnHakGRO") ('n') (1) )
  
      printf "TEST-4...%s\n" (driver ("721106") ('8') (0) )
  
      printf "TEST-5...%s\n" (driver ("111") ('0') (0) )
  
      printf "TEST-6...%s\n" (driver ("TIBFU") ('Q') (0) )
  
      printf "TEST-7...%s\n" (driver ("0") ('3') (0) )
  
      printf "TEST-8...%s\n" (driver ("10") ('0') (1) )
  
      printf "TEST-9...%s\n" (driver ("lqq") ('d') (0) )
  
source_py: def program_count_occurrence_given_character_string(s, c):
      res = 0
      for i in range(len(s)):
          if (s[i] == c):
              res = (res + 1)
      return res
source_cpp: int program_count_occurrence_given_character_string(string s, char c) {
    int res = 0;
    for ( int i = 0;
    i < s . length ( );
    i ++ ) if ( s [ i ] == c ) res ++;
    return res;
  }