Mock AIME 2 2010 Problems/Problem 7

As the functions map 1,2,3,4,5 to itself,, the condition reduces to f(x)=x, which counts as 1 function.