Yes, you earn Social Security credits when you work and pay Social Security taxes.
I am 68 years old now, how many credits do I need for my retirement?
If you were born after 1928, you need 40 credits to qualify for retirement.
I see. Well, what is the number of credits I need for survivor benefits?