Add count command, update/replace test.