function whitespace( str ) {
	return str.split( reWhitespace.REGEXP ).length - 1; // account for assumed trailing newline
}
Calculates the amount of whitespace in a string.

@private
@param {string} str - input string
@returns {NonNegativeInteger} amount of whitespace