Number of fields that have attrib['JobAssigned'] set to true.

def count_of_assigned_jobs(self):
        "Number of fields that have attrib['JobAssigned'] set to true."
        assigned = len([x.attrib['JobAssigned'] for x in self.fields
                            if x.attrib['JobAssigned'] == 'true'])
        return assigned