Power moments and value distribution of functions