Is it possible to get the number of elements in a TestNG DataProvider array at runtime?
Yes:
http://groups.google.com/group/testng-users/browse_thread/thread/e4ededbe4a084795