counting the specified number