What is your status in Hungary today?
Hungary counts residence for citizenship only on permanent-type status with a registered address. Years on ordinary permits do not count, however many there are.
Permanent: a national, EU or interim residence card, or an old settlement permit EU, EEA or Swiss citizen with a registered address Recognised refugee, or stateless A Hungarian Card, Blue Card, transfer, researcher, investor or family permit A White Card, working holiday, study, guest worker or other work permit I don’t live in Hungary