Completed - counts all triangles