Script - Items

Hi!

Let's say the total number of items is 14.
How can I get the total number of items in the Script?

Thank you in advance.
app.itemCount