In Sweden, if you're from outside the EU, you can get citizenship after 5 years working in the country. I believe that for EU citizens it's less than that.
In many other countries, like Australia and (I think?) Canada, for example, one can become a citizen after 4 years living and working in the country.