Developer Function: Server Script: items.Count
## Overview
This is the "Count Method" of the "「Items Object」". It counts the number of records in the specified table. You can specify selection conditions to narrow down the records to be counted.
## Syntax
```
items.Count(siteId, view)
```
## Parameters
|Parameter|Type|Required|Description|
|:----------|:----------|:---:|:---------------------------|
|siteId|object|Yes|Specify the site ID of the target table|
|view|string|No|Specify the conditions for the records to select|
## Return Value
Return the number of records.
## Usage Example 1
The following example counts the number of records registered in the table with site ID 2.
##### JavaScript
```
let count = items.Count(2);
```
## Usage Example 2
The following example counts the number of records registered in the table with site ID 2 and with a Status of 900 (completed).
##### JavaScript
```
let view = {
"View": {
"ColumnFilterHash": {
"Status": "[\"900\"]"
}
}
};
let count = items.Count(2, JSON.stringify(view));
context.Log(count);
```
## Notes
This is a method used in "「Server Script」". It cannot be used in "「Script」".
## Related Information
<div id="ManualList">
<article class="s-blog_list_unit"><h2>
<h2>The specified information was not found.</h2>
<p><a href="/ja/manual">Return to top</a></p>
</article>
</div><input id="SearchTextHidden" type="hidden" value="" />