5. The number of common terms (terms with the same value) in the arithmetic sequences $2,5,8, \cdots, 2015$ and $4,9,14, \cdots, 2014$ is $\qquad$.
5. 134 .

After adding 1 to each term in the two sequences, the problem is equivalent to finding the number of common terms in the arithmetic sequence $3,6,9, \cdots, 2016$ and the arithmetic sequence $5,10,15, \cdots, 2015$.

Notice that, the former consists of all numbers in $M=\{1,2, \cdots, 2016\}$ that are divisible by 3, and the latter consists of all numbers in set $M$ that are divisible by 5.

Therefore, the common terms are all numbers in set $M$ that are divisible by 15, and there are $\left[\frac{2016}{15}\right]=134$ (where $[x]$ denotes the greatest integer not exceeding the real number $x$) such numbers.