Liverpool went second in the Premier League table as they recorded a second comfortable home win in a week, beating West Ham 4-1 at Anfield.