There were 14 generations
Matthew 1:17 View context
So all the generations from Abraham to David [are] fourteen generations; and from David until the carrying away into Babylon [are] fourteen generations; and from the carrying away into Babylon unto Christ [are] fourteen generations.
There were but 13 generations
Matthew 1:12-16 View context
And after they were brought to Babylon, Jechonias begat Salathiel; and Salathiel begat Zorobabel;
And Zorobabel begat Abiud; and Abiud begat Eliakim; and Eliakim begat Azor;
And Azor begat Sadoc; and Sadoc begat Achim; and Achim begat Eliud;
And Eliud begat Eleazar; and Eleazar begat Matthan; and Matthan begat Jacob;
And Jacob begat Joseph the husband of Mary, of whom was born Jesus, who is called Christ.