Count from when you started living there on a residence or work permit, under free movement rules, or as a permanent resident. The citizenship office asks for copies of your permits.