Counts a stock item in a sub-count.
This action counts a single stock item in a sub-count. If the item hadn't been counted, it adds a new entry to the sub-count. If it had already been counted, it will overwrite the previous counted quantity.
quantity to null will remove the stock item from the sub-count.