Adding a dynamic item that counts the number of posts in a collection

Custom JavaScript coding required. No, you cannot use that number field, as it is for a single item.