Support Kaminari 0.14.0 or later

Kaminari 0.14.0 or later uses total_pages instead of num_pages.

[groonga-dev,01160] Re: ActiveGroonga 1.0.7: paginate bug?

Reported by Kazuhiro Yoshida. Thanks!!!