this function name does not seem to match the owning function name/documentation: how does `count` effect a `check`?