ACCUMULO-2405 use a simpler loop
ACCUMULO-2418 use utility method to count iterables
ACCUMULO-2418 add fail message back