Statistics for Automating Shelf Inventory