Pregunta de entrevista de SLB

Technical question: count how many times a char shows in a given string