As for the dummy nodes, a n is realized by the length-1 string h where h is the head token of node a, while a 0 and a n+1 are each realized by the empty string.
c an simply assigns count 1 to the bigrams BOS h and h EOS, and c a 0 and c a n+1 each assign expected count 1 to BOS EOS.