Added a function to obtain the number of "extra" bits to help decodifying the berger code