May 27, 2018 April 6, 2021 Fun & Games Code Golf The Challenge Your task is to input a string, and output the number of spaces in the string. This is Code Golf, so least number of bytes win. Test Cases "test" => 0 "Hello, World!" => 1 "C O D E G O L F" => 7 " " => 6