https://all-learning.com/count-the-number-of-triangles-in-given-picture-programmatic-solution/