for sent in doc.sents:
    subjects = [w for w in sent if w.dep_ == 'nsubj']
for subject in subjects:
    numbers = [w for w in subject.lefts if w.dep_ == 'nummod']
if len(numbers) == 1:
    pass
НЛП — извлечение информации в Python (spaCy)