ohcount: add test

Closes #27774.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>