Returns the number of counters.
()
| 465 | |
| 466 | /** Returns the number of counters. */ |
| 467 | public int getNCounters() { |
| 468 | int n = 0; |
| 469 | for (int counter=0; counter<nCounters; counter++) { |
| 470 | if (getCount(counter)>0) n++; |
| 471 | } |
| 472 | return n; |
| 473 | } |
| 474 | |
| 475 | /** Returns the counter assocated with the specified point. */ |
| 476 | public int getCounter(int index) { |
no test coverage detected