@CanerLC there is documention on this in Qualtrics Support.
Check out this page: https://www.qualtrics.com/support/survey-platform/survey-module/editing-questions/piped-text/piped-text-overview/
The very bottom has a QTip that shows you the code for piping in choice count:
Qtip: This option is not in the Piped Text menu. The format for the Selected Count Piped Text is ${q://QIDX/SelectedChoicesCount}. For example, if you want to show the number of selected answers for Q12, it’d be ${q://QID12/SelectedChoicesCount}. If Q12 is a Matrix Table and you want Selected Count for the second statement, the Piped Text is ${q://QID12/SelectedChoicesCount/2}.
Thank you very much. This helps me a lot!
As to your second question, use Chrome developer tools for debugging.