what if I want to retrieve the value in jquery amsify suggestags using javascript without submitting it first?

I use the jquery.amsify.suggestags plugin and I want to count how many tags are selected by the user without having to submit it first

I hope to get help and code examples because I’m not very skilled at using JavaScript