fixed display of the count of stock items attached to an order on the index page