add back count(pred,itr). closes #3180
some doc updates