AIM_BITMAP_COUNT to get number of bits set in aim_bitmap

Reviewer: @kenchiang @jnealtowns