JAL-1841 count (logo height) is valid pairs only; detect base-gap pair