implement `Format::count_all()` method