Updated pdoPage

Added pageCount and changed totalVar