Counseling may help stem foreclosures