inp = str(input()) if inp[0] == " ": print(inp.count(" "))else: print(inp.count(" ") + 1)
Teullinika Teullyeotzi
3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!