Gravity Forms File Upload Count plugin allows you to count the files uploaded and update the specified quantity field.
You can enable the count and specify a target field which holds the quantity. The plugin listens to addition and deletion of files and updates the quantity by itself.
The total field also aligns itself.