Katherine Parkinson plays a divorced lawyer who tracks her sexual encounters on a spreadsheet, and the show is funnier than the premise has any right to be.