Count only time covered by a valid residence permit or EU registration. If you were born in Greece or went to school there, take the last answer: other provisions may suit you better.