Count Spaces

L1 Easy Strings
Concept
Comparing characters against a specific one like " " is how you count a single kind of character.
Return the number of space characters (" ") in s.
Examples
▸ s = "a b c"
→ 2
▸ s = "no"
→ 0
▸ s = ""
→ 0
Progressive Hints
Hint 1 · Nudge
You're hunting for exactly one kind of character.
Hint 2 · Plan
Loop over the string and increment a counter each time a character equals a space. Return the counter.
Hint 3 · Approach
count = 0. For each c in s: if c == a space then count = count + 1. Return count.
Output
// Run your code to see the output here.