get the int value of paramName from the search part of current url or defaultValue
is used to return a valid int value if paramName was not valid
get the int value of paramName from the search part of current url or defaultValue