I need to get the amount of records with a certain filter.
Theoretically this instruction:
_dbContext.People.Count (w => w.Type == 1);
Does this get what you want:
_dbContext.People.Where(w => w.Type == 1).Count();