Unable to assign value to count1 variable for model 506