How to display in the statusline the number of matches from a search?

2018-04-16 14:36:33

I've seen this question:

Is there a way to count the number of occurrences of a word in a file?

but most of the time I search using * or just /.

It is possible to display automatically in the statusline the number of matches when using these commands?