(use 'patterned.sweet) (defpatterned count-sequence [so-far [ ] ] so-far [so-far [head & tail] ] (count-sequence (inc so-far) tail))