It's not an assignment. This script is for production logs. I don't just need a timestamp and count. I want time-stamp, error and count as a I mentioned in desired output. It's not necessery to do it with 2D array.
As I need to store 3 components timestamp, error and count. I am not sure of what structure would be best to do this and how to do it.