Count the total items in the DataTable

Is there a way to display the total number of items added in the Data Table? I would imagine if there is away to put it in a text / label like "Total Items: 5".

Please help with the code.

Thanks in Advance.

Dear @EchodaPogi,
Sure, you can! Add DataTable and Text controls to the form, and use the following JavaScript to update the Text control with a number of items in DataTable:

fd.rendered(function(){
    fd.control('DataTable1').$on('change', function(){
        fd.control('Text1').html = 'Total items: ' + fd.control('DataTable1').value.length;
    });
})

Thank you so much. Worked perfect!