python count number of occurence of the word
<p>In the following string i want to count number of words that has occured before the first \tCart and ignore the rest of the string ,how can we do this</p>

<pre><code> str1="hi\thello\thow\tare\tyou\tCart\tagain\tCart"
 output expected:5
 str1.count() ?????
</code></pre>
