A mode control model of counting and timing processes.