def increment(container, datum):
    """Increment function for Apache Spark's ``aggregate`` method.

    Typical use: ``filledHistogram = datasetRDD.aggregate(initialHistogram, increment, combine)``
    where ``datasetRDD`` is a collection of ``initialHistogram``'s input type.
    """
    container.fill(datum)
    return container