I count 32:
-8 small yellow triangles
-16 beige/yellow triangles (each beige figure makes 2: one with either small yellow triangle it touches)
-8 large triangles (2 beige/yellow triangles at either base, with a small yellow triangle at its point)
are we supposed to count the outer triangles (outside the figure) with only two sides each? In that case it would add 8 more triangles, totalling at 40.