We read in the Jerusalem Talmud:
"Forty years before the destruction of the Temple, the western light went out, the crimson thread remained crimson, and the lot for the Lord always came up in the left hand. They would close the gates of the Temple by night and get up in the morning and find them wide open" (Jacob Neusner, The Yerushalmi, p.156-157).
A similar passage in the Babylonian Talmud states:
"Our rabbis taught: During the last forty years before the destruction of the Temple the lot ['For the Lord'] did not come up in the right hand; nor did the crimson-colored strap become white; nor did the western most light shine; and the doors of the Hekel [Temple] would open by themselves" (Soncino version, Yoma 39b).
The 2nd Temple was destroyed in 70 CE August on Tisha B'Av. So when is 40 years before it? Was it 30 CE or 31 CE? Those who favor 31 CE say that Jews generally count the first year as well.