How many triangles are in this figure?

[asy]size(50);
draw((0,0)--(1,0)--(0,0)--(0,1));
draw((1,1)--(0,1)--(1,0)--(1,1)--(0,0));[/asy]
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
How many triangles are in this figure?

[asy]size(50);
draw((0,0)--(1,0)--(0,0)--(0,1));
draw((1,1)--(0,1)--(1,0)--(1,1)--(0,0));[/asy]
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
8
How many triangles are in this figure?

[asy]size(50);
draw((0,0)--(1,0)--(0,0)--(0,1));
draw((1,1)--(0,1)--(1,0)--(1,1)--(0,0));[/asy]
train