added itemCount support in getpathwayitems API