The count on the ANR page is the actual number of ANRs with the method grouped on in the selected sample.
The number of samples on the flamegraph, will not match the Count on the ANR Issue's page. For UI purposes, we display a representative sample of events to ensure we can display the full stack trace within the flamegraph.