What happened on election night?
9 June 2017 Last updated at 08:29 BST
Martin has the story of what happened after voting for the General Election closed on Thursday night.
Millions of adults in the UK went along to polling stations to place their votes, so it was a massive task for volunteers to count the results.
Martin was following what happened at a count in Leeds.