public function addVisit($type, $count = 1, DateTime $dateTime = null, AddressInterface $ipAddress = null)
    {
        $count = (int) $count;
        if ($count > 0) {
            if ($dateTime === null) {
                $dateTime = new DateTime();
            }
            if ($ipAddress === null) {
                $ipAddress = $this->getIPAddress();
            }
            $this->connection->executeQuery(
                'insert into CommunityTranslationIPControl
                    (type, ip, dateTime, count)
                    values (?, ?, ?, ?)
                    on duplicate key update count = count + ?
                ',
                [
                    (string) $type,
                    (string) $ipAddress,
                    $dateTime->format($this->connection->getDatabasePlatform()->getDateTimeFormatString()),
                    $count,
                    $count,
                ]
            );
        }
    }