It can be done, for example you query is stats count(xxx) as Total by yyy |eval yyy=yyy."-".Total . I used the same it worked for me. Though the count is displayed outside the chart not inside. but it works.
Using a pie chart graphic -This worked for me...so very cool!
Numbers are showing up per slice.
Following is the query code.
|stats count(ACTION) as Totals by ACTION
that works and details are here?
slightly related, you would think you could should the actual values and not the percentages but it appears not to be the case. But it can be done as a gauge charting.chart.showValue
At the following Link you will find all possible options for charts.
Unfortunatelly there is no option for showing the count.
But with the following "trick" you can include it manually:
... | stats count by foobar | eval foobar_slice = count + " " + foobar | fields foobar_slice, count