Since this is for a class forum rules prevent doing your homework for you.
You did not mention what course this if for: a programming language, HTML, Statistics ....etc.?
Are you being permitted to use such a tool ("easy program") as part of the overall project or is writing that tool the actual project?
There are tools to do visit counts but they focus on recording or counting incoming hits on a website. You are looking at tracking what you, an end user, has historically done.
However, again without knowing the details about the class and any imposed constraints I will suggest Powershell.
You can write script that would accept a URL, open the applicable browser and pass along the URL. Then, after a successful connection, (versus just an attempt to visit) store/add the URL into some history file.
Overtime the history file would grow and could then later be parsed to sort and count all of the respective URLs you have visited.
Conceptually very straightforward. Implementation a bit trickier I think.