See attached .blend : open it, set the array modifier count of Cube.001 (child of Cube) to 25, save, close and re-open.
When I do this, the array modifier “count” field is reset to 2.
Look closely at the “Count” input field of the array modifier: See the yellow background color?
That’s because you have keyframed the count value. Right-click on the input field and select “Delete Keyframe”. That should do the trick.