Added a doctest to base_count