How to find out the amount of certain items in a list

id: 750026

category: Help with Scripts

posts: 3

Bord89 Bord89 loading
Im trying to make a game and I the inventory list to be like “Name x4”

Im trying to get the amount of said Name via list but it just doesn't work, can anybody help??
malicondii malicondii loading
set [i v] to (1)
set [count v] to (0)
repeat (length of [list v])
If <(item (I) of [list v]) = (whatever)> then
Change [count v] by (1)
end
change [i v] by (1)

end