getItemCountInSlot() uses the ItemStack parameter as filter