add getTotalItems() and fix limit method so PaginatedList works

$result = ResultList::create($index, $query);
$result->limit(10,(int)$this->request->getVar('start'));			
$list = new PaginatedList($result);
$list->setTotalItems($result->getTotalItems());