A degree theory for a class of perturbed Fredholm maps