add shownum argument for histogram function

Calling histogram(tbl, 100) will output 100 record entriens.

Signed-off-by: Jovi Zhangwei <jovi.zhangwei@gmail.com>