Harvey Barnes scored Newcastle's fourth goal to put the home side 4-3 up in the 102nd minute of the match at St James' Park.