How do you determine your hair type/code?

I’ve been wondering what my hair type/code is but have no clue how this is determined.

What I mean by type/code is like 4B, 4C, etc.

is there like a chart you use or? 😅