anychart.onDocumentReady(function () {
var chart = anychart.line([
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');