According to quarterly magazine Delayed Gratification, to date 531 people have travelled into space.

(The criteria for what constitutes human spaceflight varies, but The Fédération Aéronautique Internationale (FAI) defines spaceflight as any flight over 100 kilometres (62 miles) high. This definition is recognized by most countries.  Funnily there’s a list of 528 people on Wiki, but the edition of the magazine I read listed 531 people.  I managed to find a copy of the original PDF, but can’t read the font and I’m not sure who the extra 3 people are.  Anyone with better eyesight is welcome to look.)
PDF Here