Fix counting bugs with a few series