How many triangles are there in this figure? And is there a formula?

I found: ABC-ABD-ABG-AFG-ACD-ACG-AEG
BCF-BCG-BDG
CDG-CEG
That is, a total of 12. But not sure if I am missing some.
How many triangles are there in this figure? And is there a formula?

I found: ABC-ABD-ABG-AFG-ACD-ACG-AEG
BCF-BCG-BDG
CDG-CEG
That is, a total of 12. But not sure if I am missing some.
It takes $3$ Lines to form a triangle. You have $6$ lines in the figure, so if each combination of $3$ lines formed a triangle, you would have $\binom63=20$ triangles. Three lines failes to form a triangle if two of them don't meet, or if all three of them meet at one point. All of your lines meet, but you have three lines meeting at points $A$, $B$, $C$, and $G$, so the number of triangles in the figure is $\binom63-4=20-4=16$; they are the $12$ you listed plus the $4$ you missed, namely $ABE$, $ACF$, $BCE$, $BFG$.