title: 'numpy.int64' object has no attribute 'count' - error for plotting graph in python
body: <p>​</p>
  
  <pre><code>plans = plans[plans.long_term_contract == 0].count()
  plans = plans[plans.long_term_contract == 0].count()
  </code></pre>
  
  <blockquote>
    <p>AttributeError                            Traceback (most recent call last)
     in 
    ----> 1 plans = plans[plans.long_term_contract == 0].count()
    AttributeError: 'numpy.int64' object has no attribute 'count'</p>
  </blockquote>
  
  <p>I want to display graph and first I want to count value with value 0 and value 1 and later display graph for both variables. I got this error. How can I count values in numpy array?</p>