title: Count no. of specific values in a dataframe pandas
body: <p>I am a newbie in data analysis stuff. I am trying to analyse a dataset using python. <a href="https://i.stack.imgur.com/alSyb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/alSyb.png" alt="enter image description here"></a></p>
  
  <ol>
  <li>I want to count no. of 1s in survived column</li>
  <li>No. of male , female in Sex column </li>
  </ol>
  
  <p><code>PassengerId  Survived  Pclass   Sex<br>
      0            1         0       3   male
      1            2         1       1   female
      2            3         1       3   male
      3            4         1       1   female
      4            5         0       3   male
  </code></p>
  
  <p>I tried groupby() but its giving error.</p>
  
  <p><code>In[88]   titanic_data.groupby('Survived') 
   Out[88] &lt;pandas.core.groupby.DataFrameGroupBy object at 0x000000000BFFE588&gt;
  </code> </p>
  
  <p>Please suggest solution</p>