Adding frequency to the legends in bar graph

Dear Community,

I am trying to add frequency/count to the legends in the paragraph. Is there a way to do that?
Any help is appreciated.

Before:

After/expected: