Added inventory count (I hope)