Counting sheep will be a thing of the past.