StockCount: test and some implementation