def get_event_distirb(data_ob, object_ids=None):
    """
    returns a dictionary showing the distribution of objects among various types.

    Parameters
    ----------
    data_ob: Data.Data
        Data object with the light curve data
    object_ids: list of ids among which distribution is to be searched for. if left as none, all ids in the data_ob is considered.

    Returns
    -------
    event_distrib: dict
        dict that holds the number of objects corresponding to each type.
    """

    event_distrib = {}

    if object_ids is None:
        object_ids = data_ob.get_all_object_ids()

    for object_id in object_ids:
        type_number = data_ob.get_object_type_number(object_id)
        if type_number not in event_distrib:
            event_distrib[type_number] = 0
        event_distrib[type_number] = event_distrib[type_number] + 1

    return event_distrib