title: Python recognizes the function count as a name
body: <p>I am viewing the <a href="http://www.pasteur.fr/formation/infobio/python/ch01.html#sect_first_session" rel="nofollow">Python tutorials from the Pascal institute</a> <a href="http://en.wikipedia.org/wiki/Guido_van_Rossum" rel="nofollow">BDFL</a> says are the best to start and i have a very basic question</p>
  
  <p>While in the <a href="http://www.pasteur.fr/formation/infobio/python/ch01.html#sect_first_session" rel="nofollow">tutorial</a> says:</p>
  
  <pre><code>How many of each base does this sequence contains?
  
  &gt;&gt;&gt; count(seq, 'a')
  35
  &gt;&gt;&gt; count(seq, 'c')
  21
  &gt;&gt;&gt; count(seq, 'g')
  44
  &gt;&gt;&gt; count(seq, 't')
  12
  </code></pre>
  
  <p>When i try to do is it does not work</p>
  
  <pre><code>&gt;&gt;&gt; count(seq, 'a')
  Traceback (most recent call last):
    File "&lt;pyshell#140&gt;", line 1, in &lt;module&gt;
      count(seq, 'a')
  NameError: name 'count' is not defined
  </code></pre>
  
  <p>Why this is happening? </p>
  
  <blockquote>
    <blockquote>
      <p>I' ve searched Stack resoures BTW and I didn't find anything.</p>
    </blockquote>
  </blockquote>
  
  <p>COMMENT</p>
  
  <p>Take a look at the start of the section 1.1.3. You have to type first from string import *</p>
  
  <pre><code>&gt;&gt;&gt; from string import*
  &gt;&gt;&gt; nb_a = count(seq, 'a')
  Traceback (most recent call last):
    File "&lt;pyshell#73&gt;", line 1, in &lt;module&gt;
      nb_a = count(seq, 'a')
  NameError: name 'count' is not defined
  &gt;&gt;&gt; from string import *
  &gt;&gt;&gt; nb_a = count(seq, 'a')
  Traceback (most recent call last):
    File "&lt;pyshell#75&gt;", line 1, in &lt;module&gt;
      nb_a = count(seq, 'a')
  NameError: name 'count' is not defined
  </code></pre>
  
  <p>I did.</p>
  
  <p>ANSWER</p>
  
  <pre><code>&gt;&gt;&gt; from string import *
  &gt;&gt;&gt; from string import count
  Traceback (most recent call last):
    File "&lt;pyshell#93&gt;", line 1, in &lt;module&gt;
      from string import count
  ImportError: cannot import name count
  &gt;&gt;&gt; from string import count
  Traceback (most recent call last):
    File "&lt;pyshell#94&gt;", line 1, in &lt;module&gt;
      from string import count
  ImportError: cannot import name count
  </code></pre>
  
  <p>I did. Didn' t work.</p>