fixed the inappropriate name of functions.

These function get the number of triggers, not hosts.