flask total rows, pages + offset cmd

Signed-off-by: pussbb <pussbb@gmail.com>