Alphabet soup

(caution: refreshing this page changes the problem!)
While having dinner on board the Star Ship AWESOME!, the chef spilled an entire pot of alphabet soup!
Miraculously they form a long string of A, B, and C's. 
You are, of course, intrigued by the patterns made by the letters. 

Find how many AAXA pattern are there below, where X is NOT the letter A, in this string of alphabet soup
(for example the string "AABAACA" has two such AAXA patterns, they can overlap):

Your answer: