Counting small cycles in generalized de Bruijn digraphs