Fix counting error

Uploading too many files in more than one batch creates error message with confusing numbers

Bug: 59670
Change-Id: I5094a77723bf2b651ca8797b6813cc88229eeac2
Merge "Fix counting error"