Building a new counter


i want to build a simple which shows users - online; - today; - yesterday and - total. That for I have to know the file or script which writes the data to the database table “log_visit”.
Do someone know the file or script?

Thanks in advance

It’s already done.
So there wouldn’t be a new plugin.