Update AnnotationsBag.php

refactor the class and added the Countable interface as well as 2 new method getDelimeter and setDelimeter to better handle grep search