Retrieve #TOTAL and #RANK from BMS file.