title: prints the number of occurances of the second string within the first string's comma-separated members
body: <p>Write a program that takes in:</p>
  
  <p>s1 A comma-separated string
  s2 A string to be counted
  And prints the number of occurances of the second string within the first string's comma-separated members.</p>
  
  <p>For example, if the user inputs one, two, one, three and then one, your program should print 2. Hint: You'll find the method list.count() helpful here. The input() statements and associated string processing you should use have been provided in the example code below. (Note: assume that each comma in the user-inputted series is followed by a single space.)</p>
  
  <p>Here is what I have so far:</p>
  
  <pre><code># split on comma + space to create the list
  s1= input('Please enter a series of comma-separated strings: ')
  # split on comma + space to create the list
  1 = s1.split(', ')
  # input the string to count in the list
  s2 = input('Please enter a string to count: ')
  # print out the number of times s2 occurs in s1
  print(list.count(s2))
  </code></pre>
  
  <p>I was given an example of what they were looking for, but still not understanding the concept completely. Here is what they gave me: "For example, if the user inputs one, two, one, three and then one, your program should print 2. Hint: You'll find the method list.count() helpful here."</p>