Matthew 1:1 lists 14 people Starting with Abraham and ending with David, a list of fathers and their sons. Fourteen people are listed, Abraham, his son, his grandson, and so on, then verse 17 says " All the generations then from Abraham until David were fourteen generations". The father one generation his son another generation his grandson another.
Seems quite simple. (No overlapping generations nonsense there)