How many 2010-digit numbers are there in which every pair of consecutive digits forms a two digit number that is divisible by $17$ or $23$?