// Get notification timestamp for a watched itemuseMediaWiki\MediaWikiServices;$item=MediaWikiServices::getInstance()->getWatchedItemStore()->loadWatchedItem($this->user,$this->linkTarget);$this->notificationTimestamp=$item->getNotificationTimestamp();

// Count watched items for a given useruseMediaWiki\MediaWikiServices;$store=MediaWikiServices::getInstance()->getWatchedItemStore();$count=$store->countWatchedItems($this->getUser());