Replace count for any method