function countAnimations(text) { temp.anismilies = {":cry:",":confused:",":asleep:","!pissed!",":spam:",":rolleyes:",":p"}; for (temp.a: temp.anismilies) { temp.count += text.positions(temp.a).size(); } return temp.count;}