using operationCount instead of operations->count

undo some of the previous commit
Speed improvement by not recursing

BEFORE: if ([f isDir])
AFTER: if (recursive && [f isDir])