The death toll for those killed by torrential rains across Pakistan increased to 40 on Wednesday.