It depends on the business classes you want to use. You could have these classes;
class Person
{
int Id { get; private set; }
string Name { get; set; }
string Address { get; set; }
IList<Account> Accounts { get; private set; }
}
class Account
{
}
Then you type it “usually” as “one to many”. Remember to use lazy loading. You can make it bidirectional.
You can create an optimized query that prevents the loading of accounts only for counting them:
select
p,
size(p.Accounts)
from
Person p
where
p.id = :id
, . .