Add the missing count method