count values from one dataframe in other code example Example: pandas count all values in whole dataframe df.stack().value_counts()