It's not the voting that's democracy, it's the counting: Statistical detection of systematic election irregularities