Add size field to the histogram json representation