product count function added