문제링크: 백준 1152번(단어의 개수)
s = input() print(len(s.split())) # 혹은 print(len(input().split()))
문자열을 입력받고 split()으로 공백을 구분해 단어의 개수를 세어 출력했줬다.