[Closed] [SOLVED] Count specific items within an array?

No, you have to do a foreach with a count, example: foreach(on the array)->branch->cast to potion->success->count = count + 1(or count++).