A Novel Unified Architecture for Low-Shot Counting by Detection and Segmentation