add counting to BaseProcessor. not siure this is right.
debug and fix ArangoTest