A good way to think about this is how many miles per gallon cars get. What determines miles per gallon? Weight, aerodynamics, speed, fuel capacity, blah blah blah, you get the picture. Set your cruise control on 60 mph and then set your cruise control on 80 mph. It will be significantly less efficient at higher speeds.
That being said how many shots you get out of your M4 will be very similar. How many ft/lbs of energy are you aiming for? How heavy and fast are the pellets you are shooting? Small changes makes huge differences. I have a .22 not a .25, but I can say when I was shooting in the 900s I would get around 50-60 shots on a fill, but dropping down to 860 fps got me well into the 120 shot range.
If you are shooting a lighter pellet at 900 or less feet per second, your capacity will be high. If you are trying to push slugs at 950+ it’s going to drastically reduce your shot count. It all comes down to tuning. High power vs. high shot count. Can’t have both.