changed positive/negative counting to be in terms of fold