def slice_size(slice_objects):
    """
    Returns the total number of elements in the combined slices
    Also works if given a single slice
    """

    num_elements = 0

    try:
        for sl in slice_objects:
            num_elements += (sl.stop - (sl.start + 1)) // sl.step + 1
    except TypeError:
        num_elements += (slice_objects.stop - (slice_objects.start + 1)) \
                        // slice_objects.step + 1

    return num_elements