df get count of row values for a column code example
Example 1: pandas count specific value in column
(df[education]=='9th').sum()
Example 2: get all count rows pandas
count_row = df.shape[0] # gives number of row count
count_col = df.shape[1] # gives number of col count