How to count values using pattern parser in Loki?

hi

Data was extracted using a pattern parser over a specified period of time.
example
ip = a
ip = b
ip = a
ip = c

in this case

a=2
b=1
c=1

Is there a way to express it as a table or graph?