The searchcount() gives use something like:
{'exact_match': 1, 'current' : 1, 'incomplete': 0, 'maxcount': 99, 'total': 5}
It is a dictionary, I am trying to do something based on the help:
local result = vim.fn.searchcount(#{recompute = 1})
print(result.total)
It gives: E5113: Error while calling lua chunk: Vim:E715: Dictionary needed