[Add] testAlternativeMethodOfCountFunction