Hi Tatopitta,
Have you searched for the Position() function on this site and forum? There are various results. If these aren't helpful, I'm sure Greg or Agni can help out. Good luck!
Patrick Halstead [InfoPath MVP]
InfoPathDev
Patrick Halstead
Project Manager at Qdabra