How many length ten strings consisting of only As and Bs contain neither "BAB" nor "BBB" as a substring?