If you replace the funds within 60 days of the distribution, it will be a rollover and it will not count as a contribution. However, if you are outside the 60 day window, it will count as a current year contribution which counts toward your annual amount.