Would've been a lot easier to count the number of *'s and |'s if I didn't reset their count to 0 every time the loop ran.
Anyone else hate making stupid mistakes like that? It seems to happen to me a lot.