score:3
https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:02016R0399-20170407
Periods of stay authorised under a residence permit or a long-stay visa shall not be taken into account in the calculation of the duration of stay on the territory of the Member States.
Note, however, your stay in other Schengen countries do count into the 90/180 rule. In practice enforcing this might be lackadaisical as you can often cross the border without a passport check but it is the law nonetheless.