getEnchantmentCount

fun ItemStack?.getEnchantmentCount(): Int