Fix InMemory Queue counter. Add batch size for Consumer