 		<!--- Count how many authors that have written books starting on "A" --->
 		<cfset authorWithBooksOnACount = model("author").count(include="books", where="title LIKE ''A%''")>
 
-		<!--- If you have a `hasMany` association setup from `post` to `comment` you can do a scoped call (the `commentCount` method below will call `model("comment").count(where="postId=##post.id##")` internally) --->
+		<!--- Count the number of comments on a specific post (a `hasMany` association from `post` to `comment` is required) --->
+		<!--- The `commentCount` method below will call `model("comment").count(where="postId=##post.id##")` internally --->
 		<cfset aPost = model("post").findByKey(params.postId)>
 		<cfset amount = aPost.commentCount()>
 	'
-	categories="model-class" chapters="column-statistics,associations" functions="average,hasMany,maximum,minimum,sum">
+	categories="model-class,statistics" chapters="column-statistics,associations" functions="average,hasMany,maximum,minimum,sum">
 	<cfargument name="where" type="string" required="false" default="" hint="See documentation for @average.">
 	<cfargument name="include" type="string" required="false" default="" hint="See documentation for @average.">
 	<cfscript>

<cffunction name="average" returntype="numeric" access="public" output="false"
	hint="Calculates the average value for a given property. Uses the SQL function `AVG`."
	examples=

		<!--- Get the amount of the highest salary for all employees --->
		<cfset highestSalary = model("employee").maximum("salary")>
	'
	categories="model-class,statistics" chapters="column-statistics" functions="average,count,minimum,sum">
	<cfargument name="property" type="string" required="true" hint="Name of the property to get the highest value for (has to be a property of a numeric data type).">
	<cfargument name="where" type="string" required="false" default="" hint="See documentation for @average.">
	<cfargument name="include" type="string" required="false" default="" hint="See documentation for @average.">
