How to find K most visited websites in last day/month/year? how to solve it for online(streaming data) and offline case(reading from logs)?