Altered: search functions

Renamed countGoods to countTotalGoods and moved it to starmap instead of
testmodule