refactoring; removed executeCountQuery()