Moved Base.countValue to Iter.countValue.
Added a _getBaseFn() to fetch the root function from a possibly bound function.