fix for recursive count values
leaning towards repl cli, added more count tests