fork download
  1. inp = str(input())
  2.  
  3. if inp[0] == " ":
  4. print(inp.count(" "))
  5. else:
  6. print(inp.count(" ") + 1)
  7.  
Success #stdin #stdout 0.02s 9100KB
stdin
Teullinika Teullyeotzi 
stdout
3