# Using the NumberOfItemsToGenarate property

This tutorial will show the way of populating **RadRating** using the **NumberOfItemsToGenerate** property.

Example 1 demonstrates a regular **RadRating** declaration:

**Example 1: Declare a RadRating**

```XAML
<telerik:RadRating x:Name="radRating"/>
```

> caption Result from example 1

![RadRating](https://www.telerik.com/products/wpf/documentation/assets/a4b0259656e28adb889e5f6150286891/rating_default.png)

If you want to set a specific number of rating items you should set the **NumberOfItemsToGenerate** property:

**Example 2: Setting the NumberOfItemsToGenerate**

```XAML
<telerik:RadRating x:Name="radRating2" NumberOfItemsToGenerate="3" />
```

> caption Result from example 2

![RadRating](https://www.telerik.com/products/wpf/documentation/assets/23a091745d1e57d23ab0ceaedd3720c0/rating_with_3_items.png)
