You must obtain at least 40 Social Security credits to qualify for Social Security benefits. You earn Social Security credits when you work and pay Social Security taxes.
And can I earn more benefits if I have more credit?
The number of credits does not affect the amount of benefits you receive. It only determines if you are eligible or not. You do not get additional benefits for earning more than the minimum number of credits.
and on what are the credits based?