Fix viewed count. Add an option for days range.