pandas counts between two categorical columns plot code example
Example 1: countplot in pandas
>>> import seaborn as sns
>>> sns.set_theme(style="darkgrid")
>>> titanic = sns.load_dataset("titanic")
>>> ax = sns.countplot(x="class", data=titanic)
Example 2: countplot for different classes in a column
>>> ax = sns.countplot(x="who", data=titanic, palette="Set3")