Added a doctest to base_count

Unlike the other (now canceled) pull request, this one isn't just to mess with your hard-tab OCD.