Ashley won 40 lollipops playing hoops at her school's game night. Later, she gave two to each of her friends. She only has four remaining. How many friends does she have?