Add count routine.
Add comments; use solr_options table.
Add partial flag.