         rightConstraint = NSLayoutConstraint(item: scrollCountView, attribute: .Trailing, relatedBy: .Equal, toItem: tableView, attribute: .Leading, multiplier: 1, constant: tableView.contentSize.width)
         tableView.addConstraint(rightConstraint)
         showCellScrollCount(false)
+        
     }
     
     public func showCellScrollCount(animated:Bool) {

    
    func updateScrollPosition() {
        
        //var currentCellRect:CGRect?
        let indexPaths = tableView.indexPathsForVisibleRows
        var currentCellRect:CGRect?
        if let indexPaths = indexPaths {
            if indexPaths.count > 0 {
                currentCellRect = tableView.rectForRowAtIndexPath(indexPaths[0])
                scrollCountView.currentScrollCountNum = indexPaths[0].row
            }
        }
        
        
        guard let currentCellRectu = currentCellRect else {
            return

                return
            }
            
            if let p = percentage {
                var finalY = tableView.contentSize.height * percentage!
                
                if (finalY < 0) {
                    finalY = 0
                } else if(finalY > tableView.contentSize.height - scrollCountViewHeight) {
                    finalY = tableView.contentSize.height - scrollCountViewHeight
                }
                topConstraint.constant = finalY
            }
        }
    }
}
