add method to get available history size
Merge remote-tracking branch 'origin/incremental' into incremental