r"""
    Returns the number of chunks that a list will be split into given a
    chunksize.

    Args:
        length (int):
        chunksize (int):

    Returns:
        int: n_chunks

    CommandLine:
        python -m utool.util_progress --exec-get_num_chunks:0

    Example0:
        >>> # ENABLE_DOCTEST
        >>> from utool.util_progress import *  # NOQA
        >>> length = 2000
        >>> chunksize = 256
        >>> n_chunks = get_num_chunks(length, chunksize)
        >>> result = ('n_chunks = %s' % (six.text_type(n_chunks),))
        >>> print(result)
        n_chunks = 8

def get_num_chunks(length, chunksize):
    r"""
    Returns the number of chunks that a list will be split into given a
    chunksize.

    Args:
        length (int):
        chunksize (int):

    Returns:
        int: n_chunks

    CommandLine:
        python -m utool.util_progress --exec-get_num_chunks:0

    Example0:
        >>> # ENABLE_DOCTEST
        >>> from utool.util_progress import *  # NOQA
        >>> length = 2000
        >>> chunksize = 256
        >>> n_chunks = get_num_chunks(length, chunksize)
        >>> result = ('n_chunks = %s' % (six.text_type(n_chunks),))
        >>> print(result)
        n_chunks = 8
    """
    n_chunks = int(math.ceil(length / chunksize))
    return n_chunks