allow window.count itemType to be a string