index() problem reseting when find other div.

index() problem reseting when find other div.

Hello guys i have this problem: I have an image carousel but the structure of the html needs to be like this:
<div class="example>
      <div>
            <!-- Image Elements -->
      </div>
      <div>
            <!-- Image Elements -->
      </div>
</div>

And now i need to know the index of the elements, but i know that when it finds the first div counts from 0 to 4 for example, and then resets the count because it founds the other div. What i want to do is to find the way tha my index are: 0 to 9 (for example) and not (0 to 4)(0 to 4). Is there a way to do that, but without changing the html structure?

Thanks in advance.

This is the link: http://wgs.com.mx/V2wgs/proyectos.php