# system.kanoa.event.updateCountEvent(counterId, deltaValue, tStamp, userId)

Updates a count value in the counterEvent table. if it can't find a value at the timestamp, it will add a count value. DEPRECATED. Replaced by addCounterEvent()

---

### Parameters

**counterId** `Integer`: Id of counter<br />

**deltaValue** `Float`: change in value<br />

**tStamp** `DateTime`: Timestmap fo counter event<br />

**userId** `Integer`: Id of the user executing the function<br />

---

### Returns

**counterEventId** `Integer`<br />

---

### Example

```python
counterId = 1
deltaValue = 1.0
tStamp = system.date.now()
userId = 5
counterEventId = system.kanoa.event.updateCountEvent(counterId, deltaValue, tStamp, userId)
```
