Retrieve open and closed issue count from DB.