Ahaggar: remove underscore from populate_hash() function name

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
Ahaggar: add the function name match counter

This counter can be used to count function names match and to
optimize code and avoid unnessary loops later.

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
Ahaggar: reset the hash match counter after processing output

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>