I'm not positive that's the way to go. I think I'd recommend modifying includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display and adding this to the add to cart box. It's an interesting problem though for folks that sell by volume - might even be worth a feature request to add "Units" to the products table so people who don't sell by "each" could add units.