Update last rest count variable