There is a Table that explains how many years of labor credits.
Is it required to pay Social Security taxes?
Of course, you also earn Social Security credits when you work.
I imagine that applies to when you work and pay Social Security taxes.