function countLines( str ) {
	return ( str.match( RE_NEWLINE ) || '' ).length + 1;
}
Counts the number of lines in a string.

@private
@param {string} str - input string
@returns {PositiveInteger} number of lines