fix scoping for fast_count