# system.kanoa.asset.addCounter(assetId, counterName, counterTypeName, userId)

Called by tagUDT assetOEE\Configuration\infeedCounterId etc. to initialize the counterId for storing the count value against.
If the counter does not exist, it will be created.

---
### Parameters
**assetId** `Integer`: Id of asset<br />
**counterName** `String`: name of counter<br />
**counterTypeName** `String`: type of counter<br />
**userId** `Integer`: Id of user executing the function<br />

---
### Returns
**counterId** `Integer`<br />

---
### Example
```python
assetId = 18
counterName = 'caps'
counterTypeName = 'infeed'
userId = 123
counterId = system.kanoa.asset.addCounter(assetId, counterName, counterTypeName, userId)
```
