I have got sequence of stings like:
"aa", "lot", "bb", "obj", "obj", "obj", "cc", "lot", "obj", "gg", "lot", "obj", "obj"
I need to calculate how much every lot have obj. Result should be like:
[lot 3 obj] [lot 1 obj] [lot 2 obj]
NOT simply:
[3, 1, 2]
Or sometinkg like this.
String have some crap - any other symbols except lot and obj. Delemeter is starting new lot section.