Usually DB2 will count the index rows (the smallest available index) instead of reading the table rows, since there is always one index row for each data row (even if the index is not unique). But if the table was small enough, then it might just use the table rows instead.
You can try this out and evaluate the visual explain in the Control Center to see the access path.