title: How to command Python not to count True as 1?
body: <p><code>count([5,2,1,'5',9,5,True],1)</code> will show 2 as it treat <code>True</code>as 1.How do i change my main code so that when I want to check how many 1 is in the sequence,it will only return 1.</p>
  
  <p>this is my main code</p>
  
  <pre><code>def count(L,x):
      k = 0
      for i in L:
          if x == i :
              k+= 1
  
      return k
  </code></pre>