changed script to return log-transformed and raw counts