It has been widely reported that the constitutional amendments approved by the April 2017 referendum will allow Erdoğan to stay in office until 2029:
Turkish President Recep Tayyip Erdogan has narrowly won a referendum to expand presidential powers, which could keep him in office until 2029.
"Turkey referendum: Erdogan wins vote to expand presidential powers." BBC News. BBC, 16 Apr. 2017. Web. 18 Apr. 2017.
However, apparently the new constitution limits the president to two five-year long terms:
The president will have a five-year tenure, for a maximum of two terms.
Erdoğan is, of course, currently serving his first term. Assuming he wins in 2019, that will be his second and last term.
How can he stay in office until 2029 then? Is there an exception in the new constitution that would allow him a third term, or does his current term simply not count?