static int GetEnumeratedObjectCount(Iterable objects) { int count = 0; for (Object obj in objects as Iterable<Object>) { count++; } return count; }