A data recording system comprises a first memory, a counting unit for counting the number of data writes to the first memory, and an alarm unit for outputting an alarm if the number of data writes to the first memory reaches a first threshold value. The counting unit writes data of the number of writes, which represents the number of data writes to the first memory, to the first memory or a second memory. The alarm unit outputs an alarm based on the data of the number of writes, which is written to the first or the second memory.