I want to make a custom field for Salesforce's Contact object; I would like to access information that can be found on the Contact object page, but are NOT fields. [![enter image description here](https://i.stack.imgur.com/AywYl.png)](https://i.stack.imgur.com/AywYl.png)

Notice in the picture, I want to access the information highlighted. However, this information are not fields. I do not know what they are called, and I do not know how to access this information for my custom Contact field (it is supposed to count how many loans the contact is assoc. with, which is the highlighted lines). 

Thanks