count_chapters
The count_chapters function, given a string containing one or more Scripture references or a NormalizedReference object or a List of NormalizedReference objects, returns the int count of the chapters included in the given reference(s).
Input#
The count_chapters function accepts a single argument of one of the following three types:
stringNormalizedReferenceList[NormalizedReference]
Output#
The count_chapters function returns an int greater than or equal to 0 that represents the number of chapters contained in the given reference(s).
Examples#
String Input Example#
Code
Result
NormalizedReference Input Example#
Code
Result
List of NormalizedReferences Input Example#
Code
Result