1602 LCD and reading out RPM fan

I used this code:

int pin = 7;
unsigned long duration;

void setup()
{
  pinMode(pin, INPUT);
  Serial.begin(9600);
}

void loop()
{
  duration = pulseIn(pin, HIGH);
  Serial.print(duration,DEC);
}

And this is what comes in the serial monitor:

08971718390700000093559378936993809380937893909368938293739376937793789363938193789384937893789389938193819377938693689374937793859382937393769381938293659382938993919380938193769380935793779372936893819380937793779391939193829374937893809382937793809385938493849374938293819386938193829380938093959394940293979385938693909391938894079397939193889384939393869393939593909399938893779406939393939390939493829381939493949406938193919395939793819384938693979399939593869385938493939398939193949405939893989390938893909385939593769388939394019391940593959378939193959394939093849406939993919395938994039395939393989271939994079402941494099409940393989395939394119406939793939378937293709378939193889364937393859369938093849384937493599381937493819378938293709384937793829384938493819385940393819381941094019374939193809394937693909370938193729382938493909374938193899382938693739385938993789360938193869381936893779373938093789391937793729381938193769363938093789401938493789394939493899384938993829382939193849382937693779385937693789377938893849420941894379440944794459439945194609452945394499449944593779373937294119399935594059431940694099409931394649411942493809385937793918366940993829389938293939385938193789365938993809377937793889380937893709391937693829380939193859378939393809378938193909377937693749380936893849367938093709374938193829381937893809391938493789370937493949372937293699381938093559378937793579377937893779462934893699372931593579368937093689363936793649363935293659373935993659369936793599355936493819368936593729370936593679373937393739361937793689373937393749374937793779384939193819378937393949382937793819389937493779374937393649384937293789380937093939391937493809376938600288190949063911264249893686834412757823143337456835270206740647473986791606043041891115965330867118170744970876840754166545902405916744235586136223136244461868456734071270313835743308483021099314946665220512744113296165499358000019109904142149251136340366014687167006505571843592644411589257393267206244459270956994302291566124655975422769549761148534123505415337849084139201946053514933942521113965401179355732245151333823509900610064111598967196858635657774487266089737736055365529540049721409593444913475447287638464580421531216335706275357953698471542451081456116799206532468244280847025723586655504602329814486150537923765705390516659073372190549641320541631613802445311650421141544519335655108211158298007105390781775337139603981328722865956133528323135710409439759553723513518045449370411364737742533716915648258157393437548239244030427721164508984689495488894450691356516417585210215052282576530729975285339749393819371541392047432444972284718600494791951321267530616255478203655722463562328675653329156993634513538954191415127444355111445462254694594490710515051147451401902519123255216273452403199505236623651405216574344458838248457875073120752741644547621275600264756253124564634965214383441344114269143454560306475769448911078505015665146196452052419523528795214335046603809307741451064433018591165000000000000000000000000000000000000000