Paste the following code in a file "customer/main/products.tpl", where quantity of the goods should be displayed.
PHP Code:
{if $products[product].avail gt 0}{$lng.txt_items_available|substitute:"items":$products[product].avail}{else}{$lng.lbl_no_items_available}{/if}