Did you know that reading configuration files can be fun and profitable? Look what I found out how to do.
We added the count of an item remaining in a chest shop to the sign. C is the total item count. Q refers to the quantity that you are purchasing for the price on the third line.
The sign does not update to add C until the shop owner opens the chest.