MZ Count the number of a given armor

Is there a script line that allows to count the amount of a given armor in the inventory + equipped ones? Thanks in advance for any clue.
Maybe I'm missing something, but didn't you already ask this? 😅
Maybe I'm missing something, but didn't you already ask this? 😅

Haha, totally been there
Geeez that must be alzheimer kicking in. Thanks for reminding me.

Original thread: https://forums.rpgmakerweb.com/threads/count-the-number-of-a-given-armor.169482/