First pass of exact_count