The abacus was the first device used for counting and computing.
There are 3 generations of computer in the history leading to modern-day computers and these are:
1st generation computers - Computers using vacuum tubes
2nd generation computers - Computers using transistors
3rd generation computers - Computers using integrated circuits
Learn more here: