Correct method name, add search function, fix page count logic