anychart.onDocumentReady(function () {
var chart = anychart.line([6, 10, 18, 11, 9]);
chart.yScale().minimum(0);
var controller = chart.annotations();
var count = controller.getAnnotationsCount();
chart.label(0, {text: "Annotations count is " + count + ".", offsetX: "40%", offsetY: "40%"})
chart.title("Get annotations count.");
chart.container("container");