countAnnotations function

Gets the number of annotations on the given layer of the given transcript