Extracted code to get intrests count into service