int getElementCount()
Elements are numbered from first to last beginning with zero. If getElementCount() returns 6, the highest-numbered element is 5.
// Create a DtpSplitString object DtpSplitString MyString = new DtpSplitString("This,is a test",", "); // This call returns the integer 4 String numElements = MyString.getElementCount();