added and passed off countingTriangles from competition 4/8