Despite our being one of the five richest countries on earth , a recent University of York study on child wellbeing places the UK 24th out of 29 European countries , and the Child Poverty Action Group estimates that almost 3 million British children live in poverty .