# club.userstyles.alpha.feed.countComments

> Published by [userstyles.club](https://lexicon.garden/identity/did:plc:z6a2tfjek74wmqinw5vjzbed)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:z6a2tfjek74wmqinw5vjzbed/club.userstyles.alpha.feed.countComments)
- [Documentation](https://lexicon.garden/lexicon/did:plc:z6a2tfjek74wmqinw5vjzbed/club.userstyles.alpha.feed.countComments/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:z6a2tfjek74wmqinw5vjzbed/club.userstyles.alpha.feed.countComments/examples)

## Definitions

### `club.userstyles.alpha.feed.countComments`

**Type**: `query`

Count comments, optionally filtered by subject and/or author.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `author` | `string` (at-identifier) | No | comment author's did |
| `subject` | `string` (at-uri) | No | uri of the subject userstyle |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `count` | `integer` | Yes |  |

#### Errors

- **ActorNotFound**

## Raw Schema

```json
{
  "id": "club.userstyles.alpha.feed.countComments",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "ActorNotFound"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "count"
          ],
          "properties": {
            "count": {
              "type": "integer"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "author": {
            "type": "string",
            "format": "at-identifier",
            "description": "comment author's did"
          },
          "subject": {
            "type": "string",
            "format": "at-uri",
            "description": "uri of the subject userstyle"
          }
        }
      },
      "description": "Count comments, optionally filtered by subject and/or author."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
