code: function () {
  		if ( isNaN( this.pageSize ) ) {
  			throw new Error( label.error.invalidArguments );
  		}
  
  		return number.round( ( !this.filter ? this.total : this.filtered.length ) / this.pageSize, "up" );
  	}
docs: Calculates the total pages
  
  @method pages
  @private
  @return {Number} Total pages