Yes. All item(stack)s in the inventory have an onUpdate function which gets called every frame. From that you can get the size of that stack.
You could also use an event handler to listen for...onEntityLiving update, check for players, then get the player's inventory from the player object and have all the items.
Much appreciated, Thanks.