added a getStartEndCount function for objects