inventory: Avoid calling count on small inventory parts