You can create a rollup column and display it through a message with the hint component.
And prevent submission through the method in the following link: