HOW TO COUNT NUMBER OF TRIANGLES IN FIGURE