Guys and sperm

How do guys know they are about to cum? Every time having sex he will pull out and after 10 seconds he will cum on my stomach..?