Write a function that, given a string and a character as arguments, returns an int representing the number of times the character appears in the string.
- if the character is not in the string return 0
- if the string is empty return 0
- if the character is not in the string return 0.
- if the string is empty return 0.
### Expected Function
@ -26,7 +26,7 @@ import "fmt"
func main() {
fmt.Println(CountChar("Hello World", 'l'))
fmt.Println(CountChar("5 balloons",5))
fmt.Println(CountChar(" ", ' ')) //The first argument contains space and tabulation.
fmt.Println(CountChar(" ", ' ')) // The first argument contains one space and tabulations.