forgot to document the max_count variable.