code: public static int countDelimitedAddresses(String str) {
  		int segDelimitedCount = 0;
  		int result = 1;
  		for(int i = 0; i < str.length(); i++) {
  			char c = str.charAt(i);
  			if(isDelimitedBoundary(c)) {
  				if(segDelimitedCount > 0) {
  					result *= segDelimitedCount + 1;
  					segDelimitedCount = 0;
  				}
  			} else if(c == SEGMENT_VALUE_DELIMITER) {
  				segDelimitedCount++;
  			}
  		}
  		if(segDelimitedCount > 0) {
  			result *= segDelimitedCount + 1;
  		}
  		return result;
  	}
docs: Given a string with comma delimiters to denote segment elements, this method will count the possible combinations.
  <p>
  For example, given "1,2.3.4,5.6" this method will return 4 for the possible combinations: "1.3.4.6", "1.3.5.6", "2.3.4.6" and "2.3.5.6"
  <p>
  @param str
  @return