Count fixed and memberfunctions

A fix to avoid getting bad number or results using cound_all_results.
The regex for the function has been extended for member functions and
instead of function_exists the is_callable is used.