pub fn pmu_num_counters() -> usize
Returns the number of counters, both hardware and firmware.
This call would always succeed without returning any error.
This function is defined in RISC-V SBI Specification chapter 11.5.