Correctly decrement counter on Stream.takeViaUnfold function.

The counter passed to the unfold functions is now decremented at each
unfold step, preventing non terminating recursion.