When words have a grammatical relationship which affects the form of one or more of the elements then they agree. THREE GIRLS shows agreement because the Noun has the PluralInflection, which is required by the Number. It is another way of saying Concord.
"The grammar glossary is the most comprehensive I have seen on the Internet. The definitions are very clear and to the point." ~ Chris Durcan - Editor, The Language Key