Move inc to hrCnt to after csv data is wrote to file