Lazyloading total rows for pagination