just add to this varaible +1 at your main function then it should work