Josiah begot Jeconiah and his brothers at the time of the captivity in Babylon.
And after the captivity in Babylon, Jeconiah begot Shealtiel, and Shealtiel.
So all the generations from Abraham till David were fourteen generations, from David until the captivity in Babylon were fourteen generations, and from the captivity in Babylon until the Christ were fourteen generations.