fix reverse counts and output genome length