The judge said he recognised in Derek Osbourne's favour that he had reached the age of nearly 60 without being convicted of any offence. But he he said he had to deal with him for downloading 2,844 still images, and 293 videos, of children.
All these children were subjected to abuse of one kind or another, some of it truly appalling. It's stomach turning.
He added some of the children were as young as three.
More top news
In a wide-ranging Peston on Sunday interview, he said Parliament security needs reviewing and the PM's counter-terror strategy is flawed.
The terror attack carried out by Khalid Masood at Westminster that left four people dead lasted less than two minutes say police.
Two knives were found at the scene in Islington, North London, and the suspects fled on foot before being arrested.