Add option to limit max entity items per chunk.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>