Anyone born in 1929 or later needs 10 years (40 credits) of employment to be eligible for retirement benefits. These same credits are applied toward the Medicare benefit which becomes available for individuals at age 65. Credits are determined by a set dollar amount of earnings and change on a yearly basis.
Check the Social Security website on the resource section of this page for further information on the types of employment that count toward Social Secuirty credits.