# mes.fnGetWOCount

## Description
Returns the total count (sum of values) for a given work order.

## Syntax
  <b>mes.fnGetWOCount(@workOrderId)</b>  
  <br /><br />
  <b>Parameters:</b><br />
  <li>@workOrderId (int): Work order Id</li>
  <br />
  <b>Returns:</b><br />
  <li>float: Total count for the work order</li>

### Code Example

```sql
SELECT mes.fnGetWOCount(1012) AS total_count;
```
