adding getItemNumber() function