add methods for counting subtriangles