Check whether beamSeq is empty before counting items.