When clients send Page and Count parameters, add the ability to check if the parameters sent are valid. If not, throw an error.