PC application for counting periods of time