Sure, you need 40 credits to qualify for retirement.
Does the amount of credits affect the amount of benefits you receive?
It does not affect it but it is important to determine if you are eligible or not.
Can this vary each year?