How to display a counter of filled fields in the form?