input: Write a python function to count the number of words in a given string.
  assert word_count("This is a sample string with some words") == 7
  assert word_count("Hello world!") == 2
  assert word_count("OneTwoThree") == 1
output: def word_count(s):
      return len(s.split())