A double beam photon counting spectrophotometer