If the given string is present in the array
vector < int > A = it -> second ; int y = upper_bound ( A . begin ( ) , A . end ( ) , R ) - A . begin ( ) ; int x = upper_bound ( A . begin ( ) , A . end ( ) , L - 1 ) - A . begin ( ) ; return ( y - x ) ; }