This is the best solution I get it
<asp:Repeater ID="rptGallery" runat="server" >
<ItemTemplate>
<div>
<div>
<asp:Label ID="Number_of_element_in_repeater" runat="server"
Text='<%#Convert.ToString(((IList((Repeater)Container.Parent).DataSource).Count) %>'>
</asp:Label>
</div>
</div>
</ItemTemplate>
</asp:Repeater>
The number of items in repeater is:
Convert.ToString(((IList)((Repeater)Container.Parent).DataSource).Count)