add count of memory malloc/free