Social Security does not count unemployment benefits as earnings. They do not affect retirement benefits.
However, income from Social Security may reduce your unemployment compensation. Contact your state unemployment office for information on how your state applies the reduction.