His phone had more than 3,100 images and videos of child sexual abuse material on it, a court document states.