Help with scoring

Hi i am trying to make a game where you have to dodge stakes you get 1 point for every stake that passes you how do i set that up plz help!!