Updated brg

Corrected  minor indexing error for counter