Get size from attribute
Refactor active neighbors count