Added basic function to find quantity of an item