Added count and count_if wrappers