From an m-element set to an n-element set: n^m functions, and n(n − 1)...(n − m + 1) one-one functions when m ≤ n. To find f(x) from f(x + h), substitute t = x + h.
A relation is a function when each input has exactly one output. Count functions as (codomain size)^(domain size), and one-one functions as a falling product. Evaluate nested forms from the inside out. Recover f(x) from a shifted form by substitution, and check one value both ways.