     @createTable()
     @createHeader()
     @createRows()
+    @createPages()
 
   createTable: =>
     table = d3.select(@selector)

      else
        return @dimensions[@selectedKey].filter([top[@selectedKey], bottom[@selectedKey]])[@sortOrder](Infinity)
    else if number < @pages
      top = @dimensions[@selectedKey][@sortOrder](number * @numRows)[(number * @numRows) - 1]
      bottom = @dimensions[@selectedKey][@sortOrder](number * @numRows)[((number + 1) * @numRows) -1]
      return @imdensions[@selectedKey].filterAll().filter([bottom[@selectedKey], top[@selectedKey]])[@sortOrder](Infinity)

  toArray: (data) =>
    ret = new Array

    if @selectedElements and @selectedElements.length isnt 0
      @highlightRows()

  createPages: =>
    @p.remove() if @p

    pageNumber = if @currentPage < @pages then @currentPage else @currentPage % @pages

    @p = d3.select(@selector)
      .append('p')
      .attr('class', 'pages')
      .text("Page: #{pageNumber + 1} of #{@pages}")

  paginate: =>
    @numRows = Math.floor((@el.height() - 47 )/ 28) # Assumes thead height of 47px and tbody height of 28px
    @pages = Math.ceil(@dimensions.uid.group().size() / @numRows)
