In reply to choleshaggarwal008:
A couple problems with your code.
Your simulation runs infinitely. You need to put a $finish at the time you want the simulation to end.
example.data_read will be 0 after the first clock edge at time 5. It will not have the value you have loaded until the second clock edge at time 15. You are printing its value at time 10, which is still 0.
Your task timer is modifying the count variable local to the task, not the count variable declared in the interface. Since the task never exits, the output will never be copied back to example.count. There is no reason for your task to have any arguments they way it is currently being used.