corrected spelling of variable count