Simplify count-alive base case to use filter, beef up test cases