test the output of count