The ability that defines Cephalopod Sentry's power works in all zones, not just the battlefield. As long as Cephalopod Sentry is on the battlefield (and still an artifact), that ability will count Cephalopod Sentry itself.