On the number of cycles of graphs and VC-dimension