Install elpa-anzu by entering the following commands in the terminal:
sudo apt update sudo apt install elpa-anzu
show number of matches in mode-line while searching
`anzu.el' is an Emacs port of `anzu.vim'. . `anzu.el' provides a minor mode which displays 'current match/total matches' in the mode-line in various search modes. This makes it easy to understand how many matches there are in the current buffer for your search query.