Possible fix for percentages. Counting in tree instead of using pinfo.number. Need to look into pinfo and all_fields_info and see why the two don't match