Hi,
If you want to know the number of rows in repeating section use below the code in C#.
Code:
// Create XPathNavigator positioned at the root of the main data source.
XPathNavigator myNav = this.MainDataSource.CreateNavigator();
XmlNodeList nodeList = myNav.SelectNodes("Repeating Node XPath");
This will give the number of nodes which are available in specified your xpath node. If you want to limit the repeating section row limit then you can change in myschema.xsd file. In this file you can specify upto how many rows you want insert and change the 'maxOccurs' value 'unbounded' to '8' (Any number) of that repeating section.