Neural‐network transformation models for counting processes