[DBClientHatohol] Make sure to avoid counting same records at getNumberOfTriggers()

Same records may be included because we are using inner join to
select hostgroup and multiple hostgroups can have a same host.

It will occur when the query doesn't have target hostgroup id and
the user is allowed to access to hostgroups partially.