[bbc] Generalize unit table lookup and add parse_count