Table:
0
A
B
C
D
E
F
G
1
#
Name
Tenure
Courtesy title
Court Rank
Revenues
Lineage
2
1
Ōoka Tadasuke (大岡忠相)
1748–1751
Echizen-no-kami (越前守)
Lower 5th (従五位下)
10,000 koku
4th son of hatamoto Ōoka Tadataka
3
2
Ōoka Tadayoshi (大岡忠宜)
1755–1766
Echizen-no-kami (越前守)
Lower 5th (従五位下)
10,000 koku
2nd son of Tadasuke
4
3
Ōoka Tadatsune (大岡忠恒)
1766–1784
Echizen-no-kami (越前守)
Lower 5th (従五位下)
10,000 koku
2nd son of Tadayoshi
5
4
Ōoka Tadatomo (大岡忠與)
1784–1786
Echizen-no-kami (越前守)
Lower 5th (従五位下)
13,000 koku
3rd son of Ogasawara Nagamichi
6
5
Ōoka Tadayori (大岡忠移)
1786–1828
Echizen-no-kami (越前守)
Lower 5th (従五位下)
10,000 koku
3rd son of Tadatsune
7
6
Ōoka Tadayoshi (2nd) (大岡忠愛)
1828–1857
Echizen-no-kami (越前守)
Lower 5th (従五位下)
10,000 koku
son of Tadayori

Questions and formulas:
Question: What is the number of the name for number 4?
Formula: ROWS(UNIQUE(FILTER(B1, A1=4)))
Formula2: ROWS(UNIQUE(FILTER(B2:B7, A2:A7=4)))
Level: medium
Question: What is the most number?
Formula: MAX(A1)
Formula2: MAX(A2:A7)
Level: easy