---
title: "countBlogs"
canonical: "https://support.appfire.com/space/PSCONF/15304713/countBlogs"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | countBlogs(spaceKey) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns the number of blogs contained in the selected space.

Returns the number of blogs contained in the selected space.

## Return Type

**Number**

Returns the number of blogs that contained in the selected space.

## Example

```javascript
number count = countBlogs("someSpaceKey");
print("Return " + count);
```

Print Return 15 (for example)

## See also

> Macro (contentbylabel)