Made an interface parameter from sample count.