rewrite count options