Calculate number of input fields and percentage of them completed