rename count variable to replication to be consistent