add length counter for AmmoFileReader