change parameter result to resultcount