Cox proportional hazards model for counting process data