Added count method

Added a count method to count the amount of breadcrumbs (might be
handy). Included a test.