Roopa has some flowers with her when she leaves from her home. She has to worship 4 deities to whom she presents flowers. She moves from her home with X number of flowers and goes to the bank of the river nearby. She dips the number of flowers in the river and the number of flowers doubles. She then goes to the first deity and presents Y number of flowers to him. She then again goes to the river and dips the flowers in the river. The number of flowers again double. She then goes to the second deity and presents him with Y number of flowers. Then she again goes to the river and dips the flowers. The number of flowers again doubles. She then goes to the third deity, presents him with Y flowers and again goes to the river, dipping the flowers. The number of flowers again doubles. Finally, she goes to the last deity and presents him with Y number of flowers. Now she finds that she is not left with any flowers.
How many triangles are there in the figure given below? 